<!DOCTYPE html>
<html>
<head>
    <title>打印测试</title>
    <meta charset="utf-8">
</head>
<body>
    <div>
        <button id="test">开始打印测试</button>
    </div>

    <script>
        document.getElementById('test').addEventListener('click', function(){
            //alert(11);
            /*
            var orderList = new Array(),
                priceList = new Array(),
                totalPrice = '88元',
                qrCodeContent = '';
            window.external.printOrder();
             */
            var arr = new Array();
            arr.push('1');
            arr.push('2');
            arr.push('3');

            window.external.testArray(arr);
        });

        var printOrder = function(){

        };
    </script>
</body>
</html>